package com.luokangtao.common.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户实体类
* luokangtao
 * 2019/07/22
*/
@ApiModel(value="XcUser用户实体类")
@Data
@Accessors(chain = true) //开启链写编程
public class User implements Serializable {
    /**
     * 用户主键id
     */
    @ApiModelProperty(value="用户主键id",hidden = true)
    private String id;

    /**
     * 用户登陆名
     */
    @ApiModelProperty(value="用户登陆名",example = "lkt13713676163",required = true)
    private String loginname;

    /**
     * 姓名
     */
    @ApiModelProperty(value="姓名",example = "李大龙",required = true)
    private String name;

    /**
     * 头像
     */
    @ApiModelProperty(value="头像")
    private String userpic;

    /**
     * 邮箱地址
     */
    @ApiModelProperty(value="邮箱地址",example = "423082732@qq.com",required = true)
    private String email;

    /**
     * 联系方式
     */
    @ApiModelProperty(value="联系方式",example = "13713676163")
    private String phone;

}